package info.wangyuan.agent.entity.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import info.wangyuan.agent.common.Enum.SensitiveType;
import info.wangyuan.agent.common.annotation.Sensitive;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;

/**
 * 微信用户
 *
 * @author Albert
 * @since 2025-09-11 19:16:45
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_user")
@EqualsAndHashCode(callSuper = true)
public class User extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 微信用户唯一标识
     */
    @Sensitive(type = SensitiveType.OPEN_ID)
    private String openId;

    /**
     * 备注信息
     */
    private String remark;

}
